import request from '@/utils/request'
//若依生成接口缺失 /service-ry
// 查询老访客信息列表
export function listOldVisitor(query) {
  return request({
    url: '/service-ry/oldVisitor/oldVisitor/list',
    method: 'get',
    params: query
  })
}

// 查询老访客信息详细
export function getOldVisitor(id) {
  return request({
    url: '/service-ry/oldVisitor/oldVisitor/' + id,
    method: 'get'
  })
}

// 新增老访客信息
export function addOldVisitor(data) {
  return request({
    url: '/service-ry/oldVisitor/oldVisitor',
    method: 'post',
    data: data
  })
}

// 修改老访客信息
export function updateOldVisitor(data) {
  return request({
    url: '/service-ry/oldVisitor/oldVisitor',
    method: 'put',
    data: data
  })
}

// 删除老访客信息
export function delOldVisitor(id) {
  return request({
    url: '/service-ry/oldVisitor/oldVisitor/' + id,
    method: 'delete'
  })
}

// 导出老访客信息
export function exportOldVisitor(query) {
  return request({
    url: '/service-ry/oldVisitor/oldVisitor/export',
    method: 'get',
    params: query
  })
}



//获取最新数据
export function getlistOldVisitorNewData() {
  return request({
     url: '/service-ry/oldVisitor/oldVisitor/latestList',
    method: 'get',
    // headers:{
    //  isToken:false 
    // }
   
  })
}

